package com.anolesoft.yr.mbus.contm.dao;

import com.anolesoft.yr.mbus.contm.entity.ContmBaseMain;
import com.anolesoft.yr.mbus.contm.entity.ContmBaseMainExample;
import com.anolesoft.yr.mbus.contm.entity.ContmStyleMain;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ContmBaseMainDao extends BaseMapper<ContmBaseMain> {
    long countByExample(ContmBaseMainExample example);

    int deleteByExample(ContmBaseMainExample example);

    List<ContmBaseMain> selectByExample(ContmBaseMainExample example);

    int updateByExampleSelective(@Param("record") ContmBaseMain record, @Param("example") ContmBaseMainExample example);

    int updateByExample(@Param("record") ContmBaseMain record, @Param("example") ContmBaseMainExample example);

    int updateBatch(List<ContmBaseMain> list);

    int updateBatchSelective(List<ContmBaseMain> list);

    int batchInsert(@Param("list") List<ContmBaseMain> list);

    int insertOrUpdate(ContmBaseMain record);

    int insertOrUpdateSelective(ContmBaseMain record);

    List<ContmBaseMain> selectAll(IPage<ContmBaseMain> page, @Param(Constants.WRAPPER) Wrapper wrapper);
}